package com.itheima.controller;

import com.qiniu.util.Auth;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@RestController
public class UploadController {

    @RequestMapping("/getToken")
    public String getToken(){
        Auth auth = Auth.create("_E6hY6otHUkNMpJAVf_32i2SU7GxEfUe8s3f8hyM","e-aaythGI0AoeAHwlrYnbERKzpAeO3jshUndyGr0");

        String token = auth.uploadToken("itcasthealth359");
        return token;
    }
}
